package dubboRpc.consumer;

import dubboRpc.common.CommonProtocal;
import dubboRpc.common.HelloService;

/**
 * @author: zlz
 * @date: 2021/9/15 22:53
 * @description:
 * @since: JDK1.8
 */
public class ClientBootsTrap {
    public static void main(String[] args) {
        DubboClient dubboClient = new DubboClient();
        // 创建代理对象
        HelloService helloService = (HelloService) dubboClient.getBean(HelloService.class, CommonProtocal.PROTOCAL);
        String res = helloService.hello("阿西吧");
        System.out.println(res);
    }
}
